package com.java.service;

import com.java.util.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient("moon-auth")
public interface AuthService {

    @PostMapping("auth/login")
    ResultVo login(@RequestBody Map<String, Object> map);

    @PostMapping("auth/verify")
    ResultVo verify(@RequestBody String token);

}
